package com.botao.tip.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.botao.tip.dao.FinanceTotalMapper;
import com.botao.tip.entity.FinanceTotal;
import com.botao.tip.service.FinanceService;
import com.botao.tip.service.FinanceTotalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author : vip865047755@126.com
 * @version :JDK1.8
 * @date : 2020-12-04 20:31
 * @File : FinanceTotalServiceImpl.java
 * @software: IntelliJ IDEA
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class FinanceTotalServiceImpl extends ServiceImpl<FinanceTotalMapper, FinanceTotal> implements FinanceTotalService {

    @Autowired
    private FinanceTotalMapper financeTotalMapper;

    @Override
    public int getMoneySum() {
        return financeTotalMapper.moneySum();
    }
}
